import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Comment } from '../../entities/comment.entity';
import { Article } from '../../entities/article.entity';
import { SensitiveWord } from '../../entities/sensitive-word.entity';
import { SensitiveWordService } from './sensitive-word.service';
import { UserModule } from '../user/user.module';
import { SensitiveAdminController } from './sensitive-admin.controller';

@Module({
  imports: [TypeOrmModule.forFeature([Comment, Article, SensitiveWord]), UserModule],
  controllers: [SensitiveAdminController],
  providers: [SensitiveWordService],
  exports: [SensitiveWordService],
})
export class SensitiveModule {}
